package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 收货地址信息
 * </p>
 *
 * @author lqj
 * @since 2025-06-28
 */
@TableName("delivery_address")
@ApiModel(value="DeliveryAddress对象", description="收货地址信息")
public class DeliveryAddress implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        @ApiModelProperty(value = "用户表_主键")
    @TableField("user_id")
    private Long userId;

        @ApiModelProperty(value = "省份")
    @TableField("province")
    private String province;

        @ApiModelProperty(value = "城市")
    @TableField("city")
    private String city;

        @ApiModelProperty(value = "区县")
    @TableField("district")
    private String district;

        @ApiModelProperty(value = "详细地址")
    @TableField("detail")
    private String detail;

        @ApiModelProperty(value = "是否为默认地址")
    @TableField("is_default")
    private Boolean isDefault;

        @ApiModelProperty(value = "逻辑删除")
    @TableField("is_deleted")
        @TableLogic
    private Boolean deleted;

        @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

        @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

        public Long getId() {
        return id;
        }

            public DeliveryAddress setId(Long id) {
        this.id = id;
            return this;
        }
        public Long getUserId() {
        return userId;
        }

            public DeliveryAddress setUserId(Long userId) {
        this.userId = userId;
            return this;
        }
        public String getProvince() {
        return province;
        }

            public DeliveryAddress setProvince(String province) {
        this.province = province;
            return this;
        }
        public String getCity() {
        return city;
        }

            public DeliveryAddress setCity(String city) {
        this.city = city;
            return this;
        }
        public String getDistrict() {
        return district;
        }

            public DeliveryAddress setDistrict(String district) {
        this.district = district;
            return this;
        }
        public String getDetail() {
        return detail;
        }

            public DeliveryAddress setDetail(String detail) {
        this.detail = detail;
            return this;
        }
    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }
        public Boolean getDeleted() {
        return deleted;
        }

            public DeliveryAddress setDeleted(Boolean deleted) {
        this.deleted = deleted;
            return this;
        }
        public LocalDateTime getCreateTime() {
        return createTime;
        }

            public DeliveryAddress setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
            return this;
        }
        public LocalDateTime getUpdateTime() {
        return updateTime;
        }

            public DeliveryAddress setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
            return this;
        }

    @Override
    public String toString() {
    return "DeliveryAddress{" +
            "id=" + id +
            ", userId=" + userId +
            ", province=" + province +
            ", city=" + city +
            ", district=" + district +
            ", detail=" + detail +
            ", isDefault=" + isDefault +
            ", deleted=" + deleted +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
    "}";
    }
}
